﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace BiblioWeb.Models
{
    [Table("Autrores")]
    [Bind(Exclude = "Id")] //para exluirlo de la vista, cuando se muestra en un ABM
    public class Autor
    {
        [Key]
        public int IdAutor { get; set; }
        [Required]
        public string NombreAutor { get; set; }
        [Required]
        public string ApellidoAutor { get; set; }
        public IList<Material> Obras { get; set; }

    }
}